package com.beyond.trace.dy.mapper;

import java.util.List;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.beyond.trace.dy.domain.TraceDySale;

/**
 * 销售单Mapper接口
 * 
 * @author Mr.Yao
 * @date 2022-04-09
 */
public interface TraceDySaleMapper extends BaseMapper<TraceDySale>
{
    /**
     * 查询销售单
     * 
     * @param saleId 销售单ID
     * @return 销售单
     */
    public TraceDySale selectTraceDySaleById(Long saleId);

    /**
     * 查询销售单列表
     * 
     * @param traceDySale 销售单
     * @return 销售单集合
     */
    public List<TraceDySale> selectTraceDySaleList(TraceDySale traceDySale);

    /**
     * 新增销售单
     * 
     * @param traceDySale 销售单
     * @return 结果
     */
    public int insertTraceDySale(TraceDySale traceDySale);

    /**
     * 修改销售单
     * 
     * @param traceDySale 销售单
     * @return 结果
     */
    public int updateTraceDySale(TraceDySale traceDySale);

    /**
     * 删除销售单
     * 
     * @param saleId 销售单ID
     * @return 结果
     */
    public int deleteTraceDySaleById(Long saleId);

    /**
     * 批量删除销售单
     * 
     * @param saleIds 需要删除的数据ID
     * @return 结果
     */
    public int deleteTraceDySaleByIds(Long[] saleIds);
}
